#include <arduino/Arduino.h>
#include <push_button/push_button.h>


int main(void)
{
  init();

  push_button::analog_button button1(A0);
  push_button::analog_button button2(A1);

  int led_pin = 13;
  pinMode(led_pin, OUTPUT);
  digitalWrite(led_pin, LOW);

  int buzzer_pin = 6;
  pinMode(buzzer_pin, OUTPUT);
  digitalWrite(buzzer_pin, LOW);

  while (true)
  {
    /**/ if (button1)
    {
      digitalWrite(led_pin, HIGH);
      delay(100);
      digitalWrite(led_pin, LOW);
      delay(100);
    }
    else if (button2)
    {
      digitalWrite(buzzer_pin, HIGH);
      delay(100);
      digitalWrite(buzzer_pin, LOW);
      delay(100);
    }
    else delay(100);
  }

  return 0;
}
